package com.zb.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.entity.TbTaskModel;
import com.zb.mapper.TbTaskMapper;
import com.zb.service.TbTaskService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName TbTaskServiceImpl
 * @Description 服务接口实现
 * @Author zj
 * @Date 2022/11/25 09:03
 **/
@Service
public class TbTaskServiceImpl extends ServiceImpl<TbTaskMapper, TbTaskModel> implements TbTaskService {


    @Override
    public List<TbTaskModel> beforeOneMinuteOrder() {
        return baseMapper.beforeOneMinuteOrder();
    }

    @Override
    public Integer lock(Long id, Integer version) {
        return baseMapper.lock(id, version);
    }
}
